package session07.homework;

import javax.swing.*;
import java.awt.*;

public class MiddlePanel extends JPanel {

    private JLabel txtLab1;
    private JComboBox<String> model;
    private JLabel temp;

    private JButton clear;
    private JButton take;
    private JButton protect;

    public MiddlePanel() {
        this.setLayout(new FlowLayout());
        this.setBackground(new Color(225,249,255));
        this.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLACK, 1), "其他选项"));

        txtLab1 = new JLabel("登陆模式：  ");
        this.add(txtLab1);

        this.model=new JComboBox<>();
        this.model.addItem("普通模式        ");
        this.add(model);
        this.temp = new JLabel("                        ");
        this.add(this.temp);

        this.clear=new JButton("清除记录");
        this.add(this.clear);
        this.take=new JButton("取回密码");
        this.add(this.take);
        this.protect=new JButton("申请密码保护");
        this.add(this.protect);
    }
}
